package calorie.com.calorie.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lxh.baselibray.util.TimeUtils;

import java.util.List;

import calorie.com.calorie.R;
import calorie.com.calorie.response.TransferRecordResponce;


public class TranferRecordAdapter extends BaseQuickAdapter<TransferRecordResponce.DataBean,BaseViewHolder> {
    public TranferRecordAdapter(int layoutResId, @Nullable List<TransferRecordResponce.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, TransferRecordResponce.DataBean item) {
        helper.setText(R.id.tv_tranfer_id,"对方帐户:"+item.getOther())
                .setText(R.id.tv_number,item.getTokenNum()+item.getType())
                .setText(R.id.tv_time, TimeUtils.millis2String(item.getTime()));
    }
}
